module Dior
  class Configuration
    attr_reader :dependencies

    def initialize
      @dependencies = []
      self.class.current = self
    end

    def source_dir(value = nil)
      @source_dir = value || @source_dir
    end

    def dependency(name, uri, depends_on: [])
      @dependencies.push(name: name, uri: uri, dependencies: depends_on)
    end
    alias dep dependency

    class << self
      attr_accessor :current
    end
  end
end